package com.wy17113.model.service;

import java.sql.SQLException;
import java.util.List;

import com.wy17113.model.entity.Comment;
import com.wy17113.model.entity.Jok;

public interface IJokService {
	public void saveJok(Jok jok) throws SQLException;
	public void delete(String id) throws SQLException;	
	
	public List<Jok> getAllJok(int type,String startTime,String endTime,int start,int count) throws SQLException;
	public int getAllJokCounts(int type,String startTime,String endTime);
	
	public void updateJokDC(int flag,String id) throws SQLException;
	public int getJokState(int flag,String id) throws SQLException;
	
	public void addComment(Comment com) throws SQLException;
	public List<Comment> getAllComments(int flag,int start,int count);
	public int getAllCommentCounts(int flag);
	
	public void doOperate(int flag,String comId) throws SQLException;
	public void doDel(String comId) throws SQLException;
	public Jok getJokById(String id);
	public void updateJok(Jok jok);
}
